<template>
  <div id='temp'>
      <div class="des">
        <h4>{{desc.title}}</h4>
        <p v-html="desc.content"></p>
    </div>
  </div>
</template>
<script>
import common from "../../kits/common.js";
export default {
  data () {
    return {
        id:0,
        desc:{}

    };
  },
  created(){
      this.id=this.$route.params.id;
      this.getinfo();
  },
  methods:{
      
      getinfo(){
                this.$http.get(common.apidomain+"/api/goods/getdesc/"+this.id).then(function(res){
                    var data=res.body;

                    if(data.status!=0){
                        Toast(data.message);
                        //console.log(data.message);
                        return;
                    }
                    this.desc=data.message[0];
                    
                })
            }
  }
}
</script>
<style scoped>
.des{
    padding:5px;
}
h4{
    color:#0094ff;

}
</style> 